package apiValidate

import (
	validate2 "gin/chibuda/system/validate"
)

func UserValidate(data map[string]string, scene string) string {
	validate := V{
		"page:页码":   "require|max:10",
		"pageCount": "require",
		"mobile:手机号":"require",
	}
	sceneAll := V{
		"GetList":  "page",
		"ApiUsers":  "page|mobile",
		"PostUser": "pageCount|page",
	}
	return validate2.CheckData(data, validate, sceneAll[scene])
}

